// 影像数据接口
export interface ImageData {
    id: string
    type: '2D' | '3D'
    format: 'DICOM' | 'NIfTI' | 'PNG' | 'JPEG'
    dimensions: {
        width: number
        height: number
        depth?: number
    }
    pixelSpacing: number[]
    imageOrientation?: number[]
    imagePosition?: number[]
    windowCenter: number
    windowWidth: number
    pixelData: ArrayBuffer
    metadata?: ImageMetadata
    url?: string // 影像文件URL
    thumbnailUrl?: string // 缩略图URL
    createdAt?: Date
    updatedAt?: Date
}

export interface ImageMetadata {
    patientName?: string
    patientId?: string
    studyDate?: string
    studyTime?: string
    studyInstanceUID?: string
    seriesInstanceUID?: string
    sopInstanceUID?: string
    modality?: string
    bodyPart?: string
    manufacturer?: string
    institutionName?: string
    sliceThickness?: number
    repetitionTime?: number
    echoTime?: number
    flipAngle?: number
    [key: string]: unknown
}

// 面板状态接口
export interface PanelState {
    zoom: number
    pan: [number, number]
    windowLevel: [number, number]
    rotation: number
    currentSlice?: number
    maxSlice?: number
}

// 查看器类型
export type ViewerType = '2D' | '3D'

// 切面类型
export type SliceOrientation = 'axial' | 'sagittal' | 'coronal'